<?php /* Smarty version 2.6.16, created on 2008-07-03 14:37:15
         compiled from admin/menu.tmpl */ ?>
<?php if ($this->_tpl_vars['menu']): ?>
<script>
	function checkInput(form) {
	
		var new_partition = document.getElementById('new_partition');
		var new_alias = document.getElementById('new_alias');

		if( new_partition.value == 'Введите название') {
			new_partition.value = '';
			new_partition.focus();
			return false;
		}
	
		if( new_partition.value == '') {
			alert ('empty field');	
			new_partition.focus();
			return false;
		}

		if(new_alias.value == 'Введите алиас') {
			new_alias.value = '';
			new_alias.focus();
			return false;
		}
	
		if(new_alias.value == '') {
			alert ('empty field');	
			new_alias.focus();
			return false;
		}

		return true;
	}

</script>
<div id="menu">
	<span class="top-nav"><a href="/admin/system/sort/"><img src="/a/images/view-refresh.gif" alt="[sort]" title="[sort]" /></a></span>
	<ul class="nav"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/menu/level.tmpl", 'smarty_include_vars' => array('menu' => $this->_tpl_vars['menu']['items'],'parent' => 1)));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></ul>
	<br />
	<div id="add-form">
	<!--img src="/img/add.png" /-->новый раздел:
	<form id="menu_form" action="/admin" method="post" onSubmit="return checkInput();">
		<input type="hidden" name="add_partition" value="1">
		<input type="text" id="new_partition" name="new_partition" value="Введите название" size="15" onblur="if(this.value==''){this.value='Введите название';}" onfocus="if(this.value=='Введите название'){this.value='';}"><br />
		<input type="text" id="new_alias" name="new_alias" value="Введите алиас" size="15" onblur="if(this.value==''){this.value='Введите алиас';}" onfocus="if(this.value=='Введите алиас'){this.value='';}"><br />
		<input type="submit" value="добавить"><br />
	</form>
	</div>
	<div id="copyright">
	<a href="http://www.eslidesign.ru/" target="_blank">&copy; eslidesign</a>&nbsp;
	</div>
</div>
<?php endif; ?>